// 静态路由配置
// 书写格式与动态路由格式一致，全部经由框架统一转换
// 比较动态路由在meta中多加入了role角色权限，为数组类型。一个菜单是否有权限显示，取决于它以及后代菜单是否有权限。
// routes 显示在左侧菜单中的路由(显示顺序在动态路由之前)
// 示例如下

const routes = [
	// 项目群
	{
		path: "/projectGroup",
		name: "projectGroup",
		component: "projectGroup",
		meta: {
			title: "项目群",
		},
	},

	// 项目概述
	{
		path: "/project_outline",
		name: "project_outline",
		component: "projectOutline",
		meta: {
			title: "项目概述",
		},
	},

	// 能源碳
	{
		path: "/energy",
		name: "energy",
		meta: {
			title: "能源（碳）",
		},
		children: [
			{
				path: "/indicators",
				name: "indicators",
				component: "energy/indicators/index.vue",
				meta: {
					title: "关键指标",
					icon: "",
				},
			},
			{
				name: "energy_analyse",
				path: "/energy_analyse",
				component: "energy/energyAnalyse/index.vue",
				meta: {
					title: "节能分析",
					icon: "",
				},
			},
			{
				path: "/poikilotherm",
				name: "poikilotherm",
				component: "energy/poikilotherm/index.vue",
				meta: {
					title: "冷站能效",
					icon: "",
				},
			},
			{
				path: "/report_printing",
				name: "report_printing",
				component: "energy/reportPrinting/index.vue",
				meta: {
					title: "报表打印",
					icon: "",
				},
			},
		],
	},

	// 舒适性
	{
		path: "/comfort",
		name: "comfort",
		meta: {
			title: "舒适性",
		},
		children: [
			{
				path: "/data_analysis",
				name: "data_analysis",
				component: "comfort/dataAnalysis/index.vue",
				meta: {
					title: "数据分析",
					icon: "",
				},
			},
			{
				path: "/report_printings",
				name: "report_printings",
				component: "comfort/reportPrintings/index.vue",
				meta: {
					title: "报表打印",
					icon: "",
				},
			},
		],
	},

	// 工单/报警
	{
		path: "/callpolice",
		name: "callpolice",
		meta: {
			title: "工单/报警",
		},
		children: [
			{
				path: "/worderList",
				name: "worderList",
				component: "callpolice/worderList/index.vue",
				meta: {
					title: "工单列表",
					icon: "icon-liebiao",
				},
			},
			{
				path: "/dataAnalysis",
				name: "dataAnalysis",
				component: "callpolice/dataAnalysis/index.vue",
				meta: {
					title: "数据分析",
					icon: "icon-book",
				},
			},
			{
				path: "/configuration",
				name: "configuration",
				component: "callpolice/configuration/index.vue",
				meta: {
					title: "工单配置",
					icon: "icon-book",
				},
			},
		],
	},

	// 员工绩效
	{
		path: "/employee",
		name: "employee",
		component: "employee",
		meta: {
			title: "员工绩效",
			icon: "",
		},
	},

	// 分析报告
	{
		path: "/analysisReport",
		name: "analysisReport",
		component: "analysisReport/index",
		meta: {
			title: "分析报告",
		},
	},

	// 设备管理
	{
		path: "/deviceManager",
		name: "deviceManager",
		meta: {
			title: "设备管理",
		},
		children: [
			{
				path: "/anlageuebersicht",
				name: "anlageuebersicht",
				component: "deviceManager/anlageuebersicht/index.vue",
				meta: {
					title: "设备总览",
					icon: "icon-liebiao",
				},
			},
			{
				path: "/equipmentData",
				name: "equipmentData",
				component: "deviceManager/equipmentData/index.vue",
				meta: {
					title: "设备数据",
					icon: "icon-book",
				},
			},
			{
				path: "/deviceLayout",
				name: "deviceLayout",
				component: "deviceManager/deviceLayout/index.vue",
				meta: {
					title: "设备列表",
					icon: "icon-book",
				},
			},
			{
				path: "/areaList",
				name: "areaList",
				component: "deviceManager/areaList/index.vue",
				meta: {
					title: "区域列表",
					icon: "icon-book",
				},
			},
			{
				path: "/pointList",
				name: "pointList",
				component: "deviceManager/pointList/index.vue",
				meta: {
					title: "点位列表",
					icon: "icon-book",
				},
			},
		],
	},
	//项目管理
	{
		path: "/pm",
		name: "pm",
		meta: {
			title: "项目管理",
		},
		component: "pm/index.vue",
	},
	// 交互输入
	{
		path: "/interactiveEntry",
		name: "interactiveEntry",
		meta: {
			title: "交互输入",
		},
		children: [
			{
				path: "/administratorInput",
				name: "administratorInput",
				component: "interactiveEntry/administratorInput/index.vue",
				meta: {
					title: "管理员输入",
					icon: "icon-book",
				},
			},
			{
				path: "/userInput",
				name: "userInput",
				component: "interactiveEntry/userInput/index.vue",
				meta: {
					title: "用户输入",
					icon: "icon-book",
				},
			},
		],
	},
	// 基础设置
	{
		path: "/systemManagement",
		name: "systemManagement",
		meta: {
			hidden: true,
		},
		children: [
			{
				path: "/systemManagement",
				name: "systemManagement",
				component: "systemManagement/index.vue",
				meta: {
					title: "基础设置",
					show: false,
				},
			},
			{
				path: "/systemManagement/User",
				name: "systemManagementUser",
				component: "systemManagement/User/index.vue",
				meta: {
					title: "用户管理",
					show: false,
				},
			},
			{
				path: "/systemManagement/Power",
				name: "systemManagementPower",
				component: "systemManagement/Power/index.vue",
				meta: {
					title: "权限定义",
					show: false,
				},
			},
		],
	},
];

export default routes;
